import Vue from "vue";
import vuex from "vuex";


Vue.use(vuex)

import tabs from '@/tabs';

export default new vuex.Store({
    state:{
        IsCollapse:false,
        UserName:'',
        TabModel:tabs
    },
    mutations:{
       ChangeCollapse(state){
         state.IsCollapse = !state.IsCollapse;
       },
       SetUserName(state,uname){
        state.UserName = uname;
       }
    }
})